package com.ruoyi.jiaofu.service;

import com.ruoyi.jiaofu.domain.DdtJiaofuGoods;
import com.ruoyi.jiaofu.mapper.DdtJiaofuGoodsMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商品基本信息Service业务层处理
 *
 * @author ruoyi
 * @date 2024-05-26
 */
@Service
@RequiredArgsConstructor
public class DdtJiaofuGoodsService {
    private final DdtJiaofuGoodsMapper ddtJiaofuGoodsMapper;

    /**
     * 查询商品基本信息
     *
     * @param id 商品基本信息主键
     * @return 商品基本信息
     */
    public DdtJiaofuGoods selectDdtJiaofuGoodsById(Long id) {
        return ddtJiaofuGoodsMapper.selectDdtJiaofuGoodsById(id);
    }

    /**
     * 查询商品基本信息列表
     *
     * @param ddtJiaofuGoods 商品基本信息
     * @return 商品基本信息
     */
    public List<DdtJiaofuGoods> selectDdtJiaofuGoodsList(DdtJiaofuGoods ddtJiaofuGoods) {
        return ddtJiaofuGoodsMapper.selectDdtJiaofuGoodsList(ddtJiaofuGoods);
    }
}
